package edu.sctu.nieyu.day20150510.methodcall;

/**
 * Created by user01 on 2015/5/10.
 */
public class MessageTwo {

    public String name;
    public int age;
    public String sex;
    public String A;

    MessageThree messageThree = new MessageThree();

    public MessageThree setMessage(MessageOne messageOne) {

        name = messageOne.name;
        age = messageOne.age;
        sex = messageOne.sex;

        A = ("Name:"+name+"\n"+"Age:"+age+"\n"+"Sex:"+sex);

        messageThree.B = A;
        return messageThree;
    }

}
